import server from "../util/request.js";

export function findPatientSurgery(params) {
    return server({
        url: '/patientSurgery/list',
        method: 'GET',
        params
    })
}

// 2 条件查询（分页）
export function listPatientSurgery(params) {
    return server({
        url: '/patientSurgery/search',
        method: 'GET',
        params
    })
}

// 3 完成手术
export function completeSurgery(data) {
    return server({
        url: '/patientSurgery/complete',
        method: 'POST',
        data
    })
}

// 4 同步数据（可选）
export function syncSurgeryData() {
    return server({
        url: '/patientSurgery/sync',
        method: 'POST'
    })
}